<%-- 
    Document   : editTeacherSelect
    Created on : 11-jan-2012, 9:30:00
    Author     : Vince
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Manage Teacher</title>
    </head>
    <body>
        <h1>Manage Teacher</h1>
        <h2>Select a Teacher:</h2>
        
        <p id="zl" style="display:none;">${lenght}</p>
        <input id="regexp" onkeyup="zoek()" type="text"></input><button onclick="zoek()" value="search">search</button>
        <table class="noborder">
            <tr><td colspan="2"><A HREF="Menu?redirection=createTeacher">Create a new Teacher</A></td></tr>
            <c:forEach begin="0" end ="${lenght-1}" varStatus="loop">
                <tr id='z${loop.index}'>
                <form id='zf${loop.index}' action="ManageTeacherController" method="post" name="ManageTeacherForm">
                    <td>
                        <input name="teacher" type="hidden" value="${tucode[loop.index]}"></input>${tucode[loop.index]} - ${tfname[loop.index]}, ${tinsert[loop.index]} ${tlname[loop.index]}
                    </td><td>
                        <input type="submit" name="submit" value="edit" />
                    </td>
                </form>
            </tr>
        </c:forEach>
    </table>


    <%session.setAttribute("manageTeacherController", "editTeacherSelect");%>
    <A HREF="Menu?redirection=back">Back</A>
</body>
</html>
